package com.wuye.rcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuye.rcgl.mapper.WyRepairMapper;
import com.wuye.rcgl.domain.WyRepair;
import com.wuye.rcgl.service.IWyRepairService;

/**
 * 报修处理Service业务层处理
 * 
 * @author wpc
 * @date 2024-11-22
 */
@Service
public class WyRepairServiceImpl implements IWyRepairService 
{
    @Autowired
    private WyRepairMapper wyRepairMapper;

    /**
     * 查询报修处理
     * 
     * @param repairId 报修处理主键
     * @return 报修处理
     */
    @Override
    public WyRepair selectWyRepairByRepairId(Long repairId)
    {
        return wyRepairMapper.selectWyRepairByRepairId(repairId);
    }

    /**
     * 查询报修处理列表
     * 
     * @param wyRepair 报修处理
     * @return 报修处理
     */
    @Override
    public List<WyRepair> selectWyRepairList(WyRepair wyRepair)
    {
        return wyRepairMapper.selectWyRepairList(wyRepair);
    }

    /**
     * 新增报修处理
     * 
     * @param wyRepair 报修处理
     * @return 结果
     */
    @Override
    public int insertWyRepair(WyRepair wyRepair)
    {
        return wyRepairMapper.insertWyRepair(wyRepair);
    }

    /**
     * 修改报修处理
     * 
     * @param wyRepair 报修处理
     * @return 结果
     */
    @Override
    public int updateWyRepair(WyRepair wyRepair)
    {
        return wyRepairMapper.updateWyRepair(wyRepair);
    }

    /**
     * 批量删除报修处理
     * 
     * @param repairIds 需要删除的报修处理主键
     * @return 结果
     */
    @Override
    public int deleteWyRepairByRepairIds(Long[] repairIds)
    {
        return wyRepairMapper.deleteWyRepairByRepairIds(repairIds);
    }

    /**
     * 删除报修处理信息
     * 
     * @param repairId 报修处理主键
     * @return 结果
     */
    @Override
    public int deleteWyRepairByRepairId(Long repairId)
    {
        return wyRepairMapper.deleteWyRepairByRepairId(repairId);
    }

    @Override
    public int editRepair(WyRepair wyRepair) {
        int row = wyRepairMapper.editRepair(wyRepair);
        return row;
    }
}
